// banner 图片
const mongoose = require("../db")
const homeSchema = mongoose.Schema({
    id: Number,//唯一标识
    name: String,
    total: Number,
    content: String,
    list: [],
    // imgUrl: String, //img图片地址
    // orderNum: Number,//排序序号
    createTime: {
        type: String,
        default: new Date().getTime()
    },//创建时间
    updateTime: {
        type: String,
        default: new Date().getTime()
    }//更新时间
})

module.exports = mongoose.model("home", homeSchema, 'home')
